//
//  CustomerCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/7/22.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "CustomerCell.h"
#import <UIImageView+WebCache.h>

@interface CustomerCell ()

@property (weak, nonatomic) IBOutlet UIImageView *avatorImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLab;

@end

@implementation CustomerCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(CustomerModel *)model
{
    _model = model;
    if (!model) return;
    [self.avatorImageView sd_setImageWithURL:[NSURL URLWithString:model.avatarUrl] placeholderImage:GetImage(@"person_avatar")];
    self.nameLab.text = model.title;
}

@end
